package org.kfive.nova.test.gc;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 16-6-5
 * Time: 下午12:26
 * To change this template use File | Settings | File Templates.
 * -XX:+UseParNewGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:D:/log/gc.log -Xms20M -Xmx20M -Xmn10M -XX:SurvivorRatio=8 -verbose:gc  -XX:MaxTenuringThreshold=1
 *
 */
public class HalfSurvivorToOldGen {
    private static final int _1MB = 1024*1024;

    public static void main(String[] args) {

        byte[] allocation1,allocation2,allocation3,allocation4,allocation5;
        allocation1 = new byte[_1MB/4];
        allocation2 = new byte[_1MB/4];
        allocation5 = new byte[_1MB/2];
        allocation3 = new byte[_1MB*4];
        allocation4 = new byte[_1MB*4];
//        allocation4 = null;
//        allocation3 = null;
//        allocation3 = new byte[_1MB*4];

    }
}
